package com.ruoyi.db.domain.system;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 银藻定返活动对象 pc_return_config
 * 
 * @author ruoyi
 * @date 2022-08-05
 */
@ApiModel(value = "PcReturnConfig",description = "银藻定返活动对象 pc_return_config")
public class PcReturnConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 银藻定返活动主键 */
    private Long id;

    /** 名称 */
    @ApiModelProperty(value="名称",name="PcReturnConfig$returnName")
    @Excel(name = "名称")
    private String returnName;

    /** 开始时间 */
    @ApiModelProperty(value="开始时间",name="PcReturnConfig$startTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 结束时间 */
    @ApiModelProperty(value="结束时间",name="PcReturnConfig$endTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 总份数 */
    @ApiModelProperty(value="总份数",name="PcReturnConfig$totalPart")
    @Excel(name = "总份数")
    private Long totalPart;

    /** 参与活动每份的银藻数 */
    @ApiModelProperty(value="参与活动每份的银藻数",name="PcReturnConfig$partAmount")
    @Excel(name = "参与活动每份的银藻数")
    private BigDecimal partAmount;

    /** 最小购买份数 */
    @ApiModelProperty(value="最小购买份数",name="PcReturnConfig$mixPart")
    @Excel(name = "最小购买份数")
    private Long mixPart;

    /** 返还比例 */
    @ApiModelProperty(value="返还比例",name="PcReturnConfig$returnRate")
    @Excel(name = "返还比例")
    private BigDecimal returnRate;
    @ApiModelProperty(value="已销份数",name="PcReturnConfig$selledPart")
    @Excel(name = "已销份数")
    private Long selledPart;
    @ApiModelProperty(value="说明",name="PcReturnConfig$content")
    @Excel(name = "说明")
    private String content;

    @ApiModelProperty(value="是否删除",name="PcReturnConfig$isDelete")
    @Excel(name = "是否删除")
    private Integer isDelete;

    private Boolean ableTake;

    public Boolean getAbleTake() {
        return ableTake;
    }

    public void setAbleTake(Boolean ableTake) {
        this.ableTake = ableTake;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getSelledPart() {
        return selledPart;
    }

    public void setSelledPart(Long selledPart) {
        this.selledPart = selledPart;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setReturnName(String returnName) 
    {
        this.returnName = returnName;
    }

    public String getReturnName() 
    {
        return returnName;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setTotalPart(Long totalPart) 
    {
        this.totalPart = totalPart;
    }

    public Long getTotalPart() 
    {
        return totalPart;
    }
    public void setPartAmount(BigDecimal partAmount) 
    {
        this.partAmount = partAmount;
    }

    public BigDecimal getPartAmount() 
    {
        return partAmount;
    }
    public void setMixPart(Long mixPart) 
    {
        this.mixPart = mixPart;
    }

    public Long getMixPart() 
    {
        return mixPart;
    }
    public void setReturnRate(BigDecimal returnRate) 
    {
        this.returnRate = returnRate;
    }

    public BigDecimal getReturnRate() 
    {
        return returnRate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("returnName", getReturnName())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("totalPart", getTotalPart())
            .append("partAmount", getPartAmount())
            .append("mixPart", getMixPart())
            .append("createTime", getCreateTime())
            .append("returnRate", getReturnRate())
            .toString();
    }
}
